import environment from "../../environment/index";
console.log(environment.dashboardApi);
import * as ajaxRequest from "../ajaxRequest";

/**
 * @name 获取左侧菜单列表信息
 * @method GET
 */
export const getSliderMenuList = () => {
  return ajaxRequest.get(
    `${environment.dashboardApi}/api/v1/appinfo/GetAppMenusByUserId`
  );
};
export const getUserDashboard = () => {
  let params = {
    appId: ""
  };
  return ajaxRequest.get(
    `${environment.dashboardApi}/api/v1/userInfo/GetUserDashboard`,
    params
  );
};
export const updateAppIdToCookie = () => {
  return ajaxRequest.get(
    `${environment.authorityUrl}/api/v1/MemberInfo/GetAppIdAndUpdateToCookie`
  );
};
/**
 * 获取用户头像
 */
export const getAppHeadInfo = () => {
  return ajaxRequest.get(
    `${environment.authorityUrl}/api/v1/MemberInfo/GetAppHeadInfo`
  );
};
